<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>商品分类</title>
	<hdjs/>
	<bootstrap/>
	<css file="__PUBLIC__/Css/public.css"/>
	<js file='__PUBLIC__/Js/public.js' />
</head>
<body>
	
	<form action="" class ='hd-form' name='form' method="post">
	<div class="wrap">
	<div class="menu_list">
		<ul>
			<li><a href="javascript:;"  class="action"> 商品分类列表 </a></li>
			<li><a href="{|U:'Category/add'}"> 添加商品分类 </a></li>
			<li><a href="{|U:'Category/update_cache'}"> 更新商品分类缓存 </a></li>
		</ul>
	</div>
	<table class='table table-striped table-bordered '>
	<tr>
		<td class='w100'  align="center"><input type="checkbox"  class='checkall' /></td>
		<td class='w100'>排序</td>
		<td>分类名称</td>
		<td width="300">操作</td>
	</tr>
	<foreach from='$category' value='$v'>
	<tr>
		<td align="center"><input type="checkbox" name='cid[{$v.cid}]' value="{$v.cid}" /></td>
		<td><input  type="text" name='sort[{$v.cid}]' value="{$v.sort}" class ='w50 textsort' /></td>
		<td>{$v._name}</td>
		<td>
			<a href="{|U:'Category/add',array('pid'=>$v['cid'])}">添加子分类</a> 
			<a href="{|U:'Category/edit',array('cid'=>$v['cid'])}">编辑</a> 
			<a href="javascript:;" onclick="var url='{|U:'Category/del',array('cid'=>$v["cid"])}'; hd_confirm(' 确定删除吗？ ',function(){location.href=url})">删除</a>
		</td>
	</tr>
	</foreach>

	</table>
	<div class='position-bottom'>
		<input type="button" class='hd-cancel all' value='全选' />
		<input type="button" class='hd-cancel cancel' value='反选'/>
		<input type="button" class='hd-cancel sort' value='排序'/>
	</div>
	</div>
	</form>
</body>
</html>